home *** CD-ROM | disk | FTP | other *** search
- // (C) Copyright Microsoft Corp. 1991. All rights reserved.
- //
- // You have a royalty-free right to use, modify, reproduce and
- // distribute the Sample Files (and/or any modified version) in
- // any way you find useful, provided that you agree that
- // Microsoft has no warranty obligations or liability for any
- // Sample Application Files which are modified.
-
-
-
- /* String table constants */
- #define IDSNAME 100
- #define IDSABOUT 200
- #define IDSTITLE 300
-
- /* 'About' dialog box resource id */
- #define ABOUTBOX 1
-
- /* button bar dialog box resource id */
- #define BUTTONBAR 2
-
- /* icon name */
- #define PLAYVFWICON 1
-
- #define BUTTON1CURSOR 1
- #define BUTTON2CURSOR 2
- #define BUTTON3CURSOR 3
- #define BUTTON4CURSOR 4
- #define BUTTON5CURSOR 5
- #define BUTTON6CURSOR 6
-
- /* menu items */
-
- #define IDM_OPEN_DEVICE_PLAY 500
- #define IDM_EXIT 600
-
-
-
- #define ID_HELP 100
-
-
- #define IDC_AUDIO 10
- #define IDC_VIDEO 20
- #define IDC_ANIMATION 30
- #define IDC_GRAPHICS 40
- #define IDC_HELP 50
- #define IDC_TEXT 60
- #define IDC_VIDWIN 70
- #define IDC_MORPH 80
- #define IDC_EDIT 90
-
- #define ID_PLAY 10
- #define ID_PAUSE 20
- #define ID_REWIND 30
- #define ID_FORWARD 40
- #define ID_STOP 50
- #define ID_BACK 60
-
- // define constant for NT
-
- #define WF_WINNT 0x4000
-
- char szAppName[10];
- char szAbout[10];
- char szMessage[25];
- int MessageLength;
-
-
- FARPROC lpprocAbout;
- HANDLE hLibrary;
-
- WORD wGlobalDeviceID;
- WORD wGlobalAudioDeviceID;
-
- HWND hWndButtonBar;
- HWND hWndEdit;
-
-
- HANDLE hHelloCursor;
-
-
- RECT audiorect;
- RECT videorect;
- RECT textrect;
- RECT helprect;
- RECT graphicsrect;
- RECT animationrect;
-
-
- HANDLE hInst;
- FARPROC lpprocAbout;
-
-
- HWND hWndMain;
-
-
- typedef struct tagButtonStruct
- {
- HWND hWnd;
- WORD wDeviceID;
- HANDLE hCursor;
-
- WORD wAudioDeviceID;
- BOOL bPlayVideo;
- BOOL bPlayAudio;
- BOOL bVideoPlaying;
- BOOL bAudioPlaying;
- BOOL bVideoPaused;
- BOOL bButtonDown;
- BOOL bRButtonClicked;
- char szFileName[26];
- } DEVICESTRUCT;
-
- typedef DEVICESTRUCT FAR * LPDEVICESTRUCT;
-
- LPDEVICESTRUCT lpDevice1;
- LPDEVICESTRUCT lpDevice2;
- LPDEVICESTRUCT lpDevice3;
- LPDEVICESTRUCT lpDevice4;
- LPDEVICESTRUCT lpDevice5;
- LPDEVICESTRUCT lpDevice6;
- LPDEVICESTRUCT lpDevice7;
- LPDEVICESTRUCT lpDevice8;
- LPDEVICESTRUCT lpDevice9;
-
-
- HANDLE hDevice1;
- HANDLE hDevice2;
- HANDLE hDevice3;
- HANDLE hDevice4;
- HANDLE hDevice5;
- HANDLE hDevice6;
- HANDLE hDevice7;
- HANDLE hDevice8;
- HANDLE hDevice9;
-
- typedef struct tagDirStruct
- {
- char szIniDir[80];
- char szAviDir[80];
- char szWavDir[80];
- } DIRSTRUCT;
-
- typedef DIRSTRUCT FAR * LPDIRSTRUCT;
-
- HANDLE hDirs;
- LPDIRSTRUCT lpDirs;
-
-
- BOOL bIsPage2;
- BOOL bIsPage1;
- BOOL bIsPage0;
-
-
- BOOL bButtonDown;
- HWND hOld;
- RECT BmpPoints;
-
- HPALETTE hPal;
-
- BOOL bNoSound;
-
- HANDLE VWRGlobal;
- RECT Points3;